package models

import "github.com/astaxie/beego/orm"

type Home struct {
	Id           int
	ManageType   int    `ht:"list;name(类型);hide"`        //0:headPic manage;
	PicPath      string `ht:"list;name(图片路径);type(pic)"` //for headPic
	PicHref      string `ht:"list;name(图片链接（站内）)"`       //for headPic
	Introduction string `orm:"type(text)" ht:"name(介绍)"`
}

func init() {
	orm.RegisterModel(new(Home))
}
func (*Home)TableName() string {
	return "home"
}

func (*Home) FN_Id() string {
	return "Id"
}
func (*Home) FN_ManageType() string {
	return "ManageType"
}
func (*Home) FN_PicPath() string {
	return "PicPath"
}
func (*Home) FN_PicHref() string {
	return "PicHref"
}
func (*Home) FN_Introduction() string {
	return "Introduction"
}